package top.toptimus.amqp;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class MyDirectListener {

    @RabbitHandler
    @RabbitListener(queues = "TASK_UPLOAD")
    public void process(String msg) {
        System.out.println("Receiver2: " + msg);
    }
}
